package com.tust.bean;

public class Course {
    private String cid; // 课程号
    private String cname; // 课程名
    private double ccredit; // 学分
    private int isDelete; // 是否删除 0未删除 1删除

    public Course() {

    }

    // 构造方法
    public Course(String cid, String cname) {
        this.cid = cid;
        this.cname = cname;
    }

    // 构造方法重载

    public Course(String cid, String cname, double ccredit) {
        this.cid = cid;
        this.cname = cname;
        this.ccredit = ccredit;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public double getCcredit() {
        return ccredit;
    }

    public void setCcredit(double ccredit) {
        this.ccredit = ccredit;
    }

    @Override
    public String toString() {
        return "Course{" +
                "cid='" + cid + '\'' +
                ", cname='" + cname + '\'' +
                ", ccredit=" + ccredit +
                '}';
    }
}
